package com.changdu.seatunnel.admin.config.enums;

import com.changdu.seatunnel.admin.config.common.ExceptionInterface;

public enum SyncErrorStatus implements ExceptionInterface {

	TEMPLATE_NOT_FOUND(1401, "未绑定模板"), 
	DATA_NOT_FOUND_INSTANCE(1402, "该数据中心不存在%s实例，请确认"),
	KUNLUN_RESPONSE_EXCEPTION(1403, "昆仑响应异常"),
	NO_SSO_ACCESSTOKEN(1403, "未登陆"), 
	SUBMIT_EXCEPTION(1500, "Seatunnel请求异常"),
	KAFKA_REQUEST_EXCEPTION(1502, "Kafka请求异常")
	;

	private final int code;
	private final String message;

	SyncErrorStatus(int code, String message) {
		this.code = code;
		this.message = message;
	}

	@Override
	public int getCode() {
		return code;
	}

	@Override
	public String getMessage() {
		return message;
	}
}
